#define _CRT_SECURE_NO_WARNINGS 1
#include"HeapSort.h"

void test01()
{
	int a[] = { 4,6,2,1,5,8,2,9 };
	HeapSort(a, sizeof(a) / sizeof(a[0]));
	for (int i = 0; i < sizeof(a) / sizeof(a[0]); i++)
	{
		printf("%d ", a[i]);
	}
	printf("\n");
}

int main()
{	
	test01();
	return 0;
}


